package com.entity;

public class Ticket {
    private int tid;
    private int uid;
    private int sid;
    private int seat;

    public Ticket() {
    }

    public Ticket(int tid, int uid, int sid, int seat) {
        this.tid = tid;
        this.uid = uid;
        this.sid = sid;
        this.seat = seat;
    }

    public int getTid() {
        return tid;
    }

    public void setTid(int tid) {
        this.tid = tid;
    }

    public int getUid() {
        return uid;
    }

    public void setUid(int uid) {
        this.uid = uid;
    }

    public int getSid() {
        return sid;
    }

    public void setSid(int sid) {
        this.sid = sid;
    }

    public int getSeat() {
        return seat;
    }

    public void setSeat(int seat) {
        this.seat = seat;
    }

    @Override
    public String toString() {
        return "Ticket{" +
                "tid=" + tid +
                ", uid=" + uid +
                ", sid=" + sid +
                ", seat=" + seat +
                '}';
    }
}
